package com.lanlian.commonlib.bean;

import java.io.Serializable;

/**
 * <pre>
 *     author : huxiaobo
 *     e-mail : huxiaobo@xlanlian.com
 *     date   : 2018/8/28 9:49
 *     desc   : 委托明细对象
 *     version: 1.0
 * </pre>
 */
public class EntrustDetailsInfo implements Serializable {

    private Integer lOrderNo;//单号
    private String contractName;//合约名称
    private Long lUnitId;
    private String vcContractCode;//合约代码
    private String cOrderDirection;//买卖方向：1.买 2.卖
    private String currency;//币种
    /**
     * '1''未报','2''待报','3''正报','4''已报',
     '5''废单','6''部成','7''已成','8''部撤',
     '9''已撤','a''待撤'              5 7 9 a不能撤单
     */
    private String cOrderStatus;//委托状态
    private String openClose;
    private Double enOrderPrice;
    private Integer ldealAmount;//成交量
    private Integer lOrderAmount;//报单量
    private String dDatetime;//委托时间
    private String cOrderType;//委托类型
    private Integer cPriceType;//价格类型：1.市价 2.限价
    private Double enAvgPrice;//成交均价

    public Double getEnAvgPrice() {
        return enAvgPrice == null ? 0 : enAvgPrice;
    }

    public void setEnAvgPrice(Double enAvgPrice) {
        this.enAvgPrice = enAvgPrice;
    }

    public Integer getcPriceType() {
        return cPriceType == null ? 0 : cPriceType;
    }

    public void setcPriceType(Integer cPriceType) {
        this.cPriceType = cPriceType;
    }

    public Integer getlOrderAmount() {
        return lOrderAmount == null ? 0 : lOrderAmount;
    }

    public void setlOrderAmount(Integer lOrderAmount) {
        this.lOrderAmount = lOrderAmount;
    }

    public String getcOrderType() {
        return cOrderType == null ? "" : cOrderType;
    }

    public void setcOrderType(String cOrderType) {
        this.cOrderType = cOrderType;
    }

    public Integer getlOrderNo() {
        return lOrderNo;
    }

    public void setlOrderNo(Integer lOrderNo) {
        this.lOrderNo = lOrderNo;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public Long getlUnitId() {
        return lUnitId;
    }

    public void setlUnitId(Long lUnitId) {
        this.lUnitId = lUnitId;
    }

    public String getVcContractCode() {
        return vcContractCode;
    }

    public void setVcContractCode(String vcContractCode) {
        this.vcContractCode = vcContractCode;
    }

    public String getcOrderDirection() {
        return cOrderDirection;
    }

    public void setcOrderDirection(String cOrderDirection) {
        this.cOrderDirection = cOrderDirection;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getcOrderStatus() {
        return cOrderStatus;
    }

    public void setcOrderStatus(String cOrderStatus) {
        this.cOrderStatus = cOrderStatus;
    }

    public String getOpenClose() {
        return openClose;
    }

    public void setOpenClose(String openClose) {
        this.openClose = openClose;
    }

    public Double getEnOrderPrice() {
        return enOrderPrice;
    }

    public void setEnOrderPrice(Double enOrderPrice) {
        this.enOrderPrice = enOrderPrice;
    }

    public String getdDatetime() {
        return dDatetime;
    }

    public void setdDatetime(String dDatetime) {
        this.dDatetime = dDatetime;
    }

    public Integer getLdealAmount() {
        return ldealAmount;
    }

    public void setLdealAmount(Integer ldealAmount) {
        this.ldealAmount = ldealAmount;
    }
}
